#docker rmi -f bitnami/redmine:4.2.3
docker pull bitnami/redmine:4.2.3
rm -rf /cardone/docker/images/bitnami/redmine_4.2.3.tar
mkdir -p /cardone/docker/images/bitnami
docker save bitnami/redmine:4.2.3 > /cardone/docker/images/bitnami/redmine_4.2.3.tar



# docker node update --label-rm cardone-redmine_redmine cardone-01-01
docker node update --label-add cardone-redmine_redmine=true cardone-01-06

docker stack rm cardone-redmine

docker stack deploy -c /cardone/middlewares/redmine/prod.yml cardone-redmine

for i in {1..10}  
do  
sleep $i

docker stack ps cardone-redmine

docker service ls
done

docker service logs cardone-redmine_redmine -f --tail 300
